<?php

namespace app\api\validate;


class Scheduling extends BaseValidate
{
    protected $rule = [
        'id' => 'isPositiveInteger',//
        'title' => 'require|isNotEmpty',//行程名称
        'start_time' => 'require|isNotEmpty|date', //开始时间
        'end_time' => 'require|isNotEmpty|date', //结束时间
    ];

    protected $message = [
        'title.require' => '行程名称不能为空',
        'start_time.require' => '日期不能为空',
        'start_time.date' => '日期输入有误',
    ];
}
